package cn.com.nes.site.service.crm.opportunity;

import cn.com.nes.mybatis.agent.crm.entity.OpportunityFile;
import cn.com.nes.site.service.crm.opportunity.bo.DelOpportunityFileBO;
import cn.com.nes.site.service.crm.opportunity.bo.OpportunityFileBO;
import cn.com.nes.site.service.crm.opportunity.bo.SaveOpportunityFileBO;
import cn.com.nes.site.service.crm.opportunity.dto.OpportunityFileDto;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;


public interface OpportunityFileService extends IService<OpportunityFile> {

    Page<OpportunityFileDto> getOpportunityFilePage(OpportunityFileBO convertToBo);

    OpportunityFile saveOpportunityFileFunction(SaveOpportunityFileBO convertToBo) throws Exception;

    OpportunityFile saveOpportunityFile(SaveOpportunityFileBO convertToBo);

    void saveOpportunityFile(List<SaveOpportunityFileBO> fileBos);

    OpportunityFile delOpportunityFile(DelOpportunityFileBO convertToBo) throws Exception;

    List<OpportunityFileDto> getOpportunityFileList(String opportunityUuid, List<String> opportunityFileTypeList);
}
